//****************************************************************
// Autor:   Gustavo Castro
//       
// Seccion: 10
// Nombre del Archivo: leaf.java
// Fecha de Modificacion: 
// Descripcion:
// Código obtenido del libro de clase. 
// ***************************************************************

package hojatrabajo6;

/**
 *
 * @author cristian
 */
public class leaf {
    int frequency; // frequency of char
    char ch;	// the character

    public leaf(char c)
    // post: construct character entry with frequency 1
    {
	ch = c;
	frequency = 1;
    }

    public boolean equals(Object other)
    // post: return true if leaves represent same character
    {
	leaf that = (leaf)other;
	return this.ch == that.ch;
    }

}
